import request from '@/utils/request'

export function getGoodsListApi (query) {
  return request({
    methos: 'get',
    url: 'goods',
    params: query
  })
}

export function delGoodByIdApi (id) {
  return request({
    method: 'delete',
    url: `goods/${id}`
  })
}

export function addGoodApi (data) {
  return request({
    method: 'post',
    url: 'goods',
    data
  })
}
